import request from '@/utils/request'
// 查询{{.FunctionName}}列表
export function list{{upper (.BusinessName)}}(data) {
  return request({
    url: '/{{.BusinessName}}/list',
    method: 'post',
    data: data
  })
}
// 查询{{.FunctionName}}详细
export function get{{upper (.BusinessName)}}({{- range .Fields}}{{- if eq .IsPk "1"}}{{.JavaField}} {{- end}}{{- end}}) {
  return request({
    url: '/{{.BusinessName}}/' + {{- range .Fields}} {{- if eq .IsPk "1"}} {{.JavaField}} {{- end}}{{- end}},
    method: 'get'
  })
}
// 新增{{.FunctionName}}
export function add{{upper (.BusinessName)}}(data) {
  return request({
    url: '/{{.BusinessName}}/insert',
    method: 'post',
    data: data
  })
}
// 修改{{.FunctionName}}
export function update{{upper (.BusinessName)}}(data) {
  return request({
    url: '/{{.BusinessName}}/update',
    method: 'post',
    data: data
  })
}
// 删除{{.FunctionName}}
export function del{{upper (.BusinessName)}}({{- range .Fields}}{{- if eq .IsPk "1"}}{{.JavaField}} {{- end}}{{- end}}) {
  return request({
    url: '/{{.BusinessName}}/' + {{- range .Fields}} {{- if eq .IsPk "1"}} {{.JavaField}} {{- end}}{{- end}},
    method: 'delete'
  })
}